auto merge of #702 : tomassedovic/cargo/run-examples, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 29 Oct 2014 19:04:40 +0000 (19:04 +0000)
committerbors <bors@rust-lang.org>
Wed, 29 Oct 2014 19:04:40 +0000 (19:04 +0000)
commit491a78681a89a44f03017deb7d70457e6e3122ed
tree323741667fa62ebfb6f5828d3d5cddcf2b255807
parent502ea6e68484a5b7ea355890cadaeba58b9d7636
parentf93506aff274ecff9404ba1690aad6bd6afa61b6
auto merge of #702 : tomassedovic/cargo/run-examples, r=alexcrichton

This lets users run any executable from the `examples` or `bin` directories by
passing its name with `--example` or `--bin` flag.

If neither is specified, we fall back to the old behaviour (running the only bin
target in the project, failing if there are more).

Closes #538